/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testmultinxt;

import lejos.nxt.remote.NXTCommand;
import lejos.pc.comm.NXTComm;


/**
 *
 * @author Alan
 */
public abstract class MyNXTCommand {
    public interface Callback {
        public void call();
    }
    
    public static void send(NXTComm nxtComm, Callback callback) {
        NXTCommand.getSingleton().setNXTComm(nxtComm);
        callback.call();
    }
}
